﻿using System.Web;
using System.Web.Optimization;

namespace Cofe.Web
{
    public class BundleCofeConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
             bundles.Add(new ScriptBundle("~/bundles/cofe/app").Include(                        
                        "~/CoffeeScripts/App.coffee"));

            bundles.Add(new ScriptBundle("~/bundles/cofe/shared").Include(
                        "~/CoffeeScripts/shared/coffee"));

            bundles.Add(new ScriptBundle("~/bundles/cofe/models").Include(                        
                        //Sequence matters
                        "~/CoffeeScripts/models/_paginateSupport.coffee",
                        "~/CoffeeScripts/models/EntryItem.coffee",
                        "~/CoffeeScripts/models/EntryItemList.coffee",
                        "~/CoffeeScripts/models/EntryListView.coffee",
                        "~/CoffeeScripts/models/EntryTreeItem.coffee",
                        "~/CoffeeScripts/models/EntryTree.coffee"                        
                        ));

            bundles.Add(new ScriptBundle("~/bundles/cofe/controllers/base").Include(
                    "~/CoffeeScripts/controllers/base/coffee"));

            bundles.Add(new ScriptBundle("~/bundles/cofe/controllers").Include(
                    "~/CoffeeScripts/controllers/coffee"));

            bundles.Add(new ScriptBundle("~/bundles/cofe/tests").Include(
                    "~/CoffeeScripts/tests/coffee"));
            

        }
    }
}